﻿@model Hrm.Core.Service

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="page-header" class="clearfix">
    <div class="page-header">
        <h2>应用管理</h2>
        <span class="txt">可以增删查改所有的应用</span>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default toggle panelMove panelClose panelRefresh">
            <div class="panel-heading">
                <h4 class="panel-title">操作界面</h4>
            </div>
            <div class="panel-body pt0 pb0">
                @using (Html.BeginForm("Create", "Services", new { area = "Studio" }, FormMethod.Post, new { @class = "form-horizontal group-border stripped" }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)

                    <div class="form-group">
                        @Html.LabelFor(model => model.Name, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Glyphicon, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Glyphicon, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Glyphicon)
                        </div>
                    </div>

                    <div class="form-group">
                        @Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.TextAreaFor(model => model.Description, new { @class = "form-control" } )
                            @Html.ValidationMessageFor(model => model.Description)
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-md-offset-3 col-lg-10 col-md-9">
                            <input type="submit" value="保存" class="btn btn-primary" />
                            <a href="@Url.Action("Index")" class="btn btn-primary">返回</a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
